import React, { Component, PropTypes } from 'react'

class Header extends Component {

	handleLoginO() {
		localStorage.removeItem("userInfo")
		localStorage.removeItem("adminInfo")
		location.href = "/login"
	}

	render() {
		return (
			<div>
				<div className="header-bar" >
					<div className="logo"></div>
					<button className="loginOut-btn" onClick={this.handleLoginO}>退出</button>
				</div>
			</div>

		)
	}
}

export default Header
